/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gametheory;

import java.awt.geom.Point2D;
import java.util.ArrayList;

/**
 *
 * @author 3mara
 */
public class Camera extends Utility {

    ArrayList<Person> assignedPersons = new ArrayList<Person>();
    Point2D.Double point;
    int zoomLevel;
    int orientation;
    double utility = 0;

    public Camera(Point2D.Double point, int zoomLevel, int orientation) {
        this.point = point;
        this.zoomLevel = zoomLevel;
        this.orientation = orientation;
    }

    public double getUtility() {
        for (int p = 0; p < assignedPersons.size(); p++) {
            for (int crt = 0; crt < this.criteriaList.size(); crt++) {
                utility += this.criteriaList.get(crt).getScore(this, assignedPersons.get(p));
            }
        }
        return utility;
    }
}
